<div id="body_container">
    <div class="detail_container">
      <div class="detail_box">
        <div class="detail_top_curve">
          <div class="detail_detail_content">
            <div class="welcomezone">
              <div style="margin-bottom:10px;">
                <div class="blueboldheading">
                  <h1>Profile picture</h1>
                </div>
<% user = User.find_by_id(session[:user_id]) %>
Actual photo:
</br>
</br>
<p2>
<center>
<% if user.photo.file? %>

<%= image_tag user.photo.url(:small) %>
<% else %>
<%= image_tag("d.png") %>
<% end %>
</center>
</p2>
</br>
</br>
<p2>
<center>

Please select another one:
</center>
</br>
<%= form_for :user, :html => {:multipart => true} do |f| %>
<center>
<%= f.file_field :photo %>
</center>
</br>
<%= f.submit 'Update photo' %>
<% end %>

</br>
</br>
<p2>
<a href = "/account"><span>Cancel</span></a>
</br>

</br>
</br>